package com.example.redisspringbootautoconfigure.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @program: springboot1
 * @description:
 * @author: zhanghz001
 * @create: 2020-12-09 09:59
 **/
// @Configuration
@ConfigurationProperties(prefix = "spring.redis")
public class RedisProperties {
    private String host = "127.0.0.1";
    private int port = 6379;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "RedisProperties{" +
                "host='" + host + '\'' +
                ", port=" + port +
                '}';
    }
}
